Skip to content

ci: pin actions to commit SHAs, add Trivy, Dependabot and release-please - #1

Merged
Krustytoe merged 1 commit into
mainfrom
ci/p1-supply-chain
Oct 6, 2026
Merged

Krustytoe merged 1 commit into
mainfrom
ci/p1-supply-chain

Conversation

@Krustytoe

Copy link
Copy Markdown
Owner

Phase 2 of P1. Same pattern as platform-workflows#1.

Changes

  • SHA-pinned actions: every third-party uses: now points at a full commit SHA with the version as a comment. Majors are unchanged, so behavior is the same. The only edits to existing workflow files are those uses: lines.
  • New security workflow: calls trivy-scan from platform-workflows, pinned to the v0.1.0 SHA. Runs in config (Terraform/IaC misconfiguration) mode on PRs, on pushes to main, and weekly (Monday 06:17 UTC) to catch newly published advisories. Results go to Security → Code scanning as SARIF. Findings don't fail the build yet.
  • Dependabot for github-actions (weekly, grouped). It also keeps the platform-workflows pin current.
  • release-please (simple, manifest at 0.1.0) maintaining CHANGELOG.md.

Release bootstrap

No tags yet. After merge, create release v0.1.0 at the merge commit. The PR title uses ci: so release-please won't race to propose a version first.

Not done here

  • trivy is not a required check yet. Add it to branch protection once a few runs show it's stable.
  • Release PRs opened with GITHUB_TOKEN don't trigger CI, so merge them with admin bypass.

Validation

  • actionlint 1.7.12: clean
  • This PR's CI is the first real run of trivy-scan from another repo.

🤖 Generated with Claude Code

- Pin third-party actions to full commit SHAs with version comments
  (same major versions as before; Dependabot proposes upgrades)
- security workflow: calls platform-workflows trivy-scan (pinned to the
  v0.1.0 SHA) in config mode on PRs, pushes to main, and weekly
- Dependabot for github-actions, weekly, grouped
- release-please (simple, manifest at 0.1.0) maintaining CHANGELOG.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@Krustytoe
Krustytoe merged commit c34b4a9 into main Oct 6, 2026
4 checks passed
@Krustytoe
Krustytoe deleted the ci/p1-supply-chain branch October 6, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants